package com.rd.student.ruanjian.class4.zhouzihe.day18;

import java.io.BufferedReader;
import java.io.FileReader;

public class TestBufferedReader {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new FileReader("stream.txt"));
        String line = null;
        while (true) {
            line = reader.readLine();
            if (line == null) break;;
            System.out.print(line);
        }
        reader.close();
    }
}